<template>
  <div>
    <h3>{{msg}}</h3>
    <form action="">
      帐号：<input v-model="admin.username" type="text"/><br/>
      密码：<input v-model="admin.password" type="text"/><br/>
      <input type="button" value="登录" @click="login">
      <input type="button" value="重填">
    </form>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "login",
  data(){
    return {
      msg:"用户登录",
      admin:{}
    };
  },
  methods:{
    login(){ // 登录按钮的功能

      this.$router.push({name:"welcome"});
    }
  }
}
</script>

<style scoped>

</style>
